import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/account/models/bank_entity.dart';
import 'package:azlistview/azlistview.dart';


BankEntity $BankEntityFromJson(Map<String, dynamic> json) {
	final BankEntity bankEntity = BankEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		bankEntity.id = id;
	}
	final String? cover = jsonConvert.convert<String>(json['cover']);
	if (cover != null) {
		bankEntity.cover = cover;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		bankEntity.name = name;
	}
	final String? letter = jsonConvert.convert<String>(json['letter']);
	if (letter != null) {
		bankEntity.letter = letter;
	}
	return bankEntity;
}

Map<String, dynamic> $BankEntityToJson(BankEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['cover'] = entity.cover;
	data['name'] = entity.name;
	data['letter'] = entity.letter;
	return data;
}